import { lazy } from 'react'

const router = [
  {
    title: '首页',
    path: '/home',
    component: lazy(() => import('../views/home.jsx')),
    exact: false
  },
  {
    title: '作品',
    path: '/works',
    component: lazy(() => import('../views/works.jsx')),
    exact: false,
    children: [
      {
        title: '子表单1',
        path: '/works1',
        component: lazy(() => import('../views/works1.jsx')),
        exact: false
      },
      {
        title: '子表单2',
        path: '/works2',
        component: lazy(() => import('../views/works2.jsx')),
        exact: false
      }
    ]
  },
  {
    title: 'antd组件',
    path: '/antds',
    component: lazy(() => import('../views/antds.jsx')),
    exact: false
  },
  {
    title: '请求',
    path: '/request',
    component: lazy(() => import('../views/request.jsx')),
    exact: false
  },
  {
    title: '我的',
    path: '/my',
    component: lazy(() => import('../views/my.jsx')),
    exact: false
  }
]

export default router
